package com.xinsoft.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinsoft.common.Response;
import com.xinsoft.entity.dto.MesDispatchHisPageParam;
import com.xinsoft.entity.po.MesDispatchHis;
import com.xinsoft.entity.vo.MesDispatchHisVo;
import com.xinsoft.service.MesDispatchHisService;
import com.xinsoft.mapper.MesDispatchHisMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13370
* @description 针对表【mes_dispatch_his(工单记录)】的数据库操作Service实现
* @createDate 2023-07-31 16:05:10
*/
@Service
public class MesDispatchHisServiceImpl extends ServiceImpl<MesDispatchHisMapper, MesDispatchHis>
    implements MesDispatchHisService{

    @Override
    public Response<?> findPageListByParam(MesDispatchHisPageParam mesDispatchPageParam) {
        Page<MesDispatchHisVo> page = new Page<>(mesDispatchPageParam.getCurrentPage(), mesDispatchPageParam.getPageSize());
        IPage<MesDispatchHisVo> pageParamList = this.baseMapper.findPageListByParam(page, mesDispatchPageParam);
        return Response.succeed(pageParamList);
    }
}




